<template>
	<view>
		<view class="friends">
			<my-top title="亲友团" rightval="邀请" @submit='submit'></my-top>
			<view class="m_header_top">

			</view>
			<view class="memberfriends">
				<view class="memberitem">
					<image class="imgage" src="../../../../static/img/menu-tx.png" mode=""></image>
					<view class="name">
						<text>妈妈</text>
						<text>还没来过</text>
					</view>
					<view class="invite" @click="submit">
						<text>去邀请</text>
					</view>
				</view>
				<view class="memberitem">
					<image class="imgage" src="../../../../static/img/menu-tx.png" mode=""></image>
					<view class="name">
						<text>爸爸</text>
						<text>来过17次</text>
					</view>
					<view class="nearly">
						<text>最近：12-28 14:34 </text>
					</view>
				</view>
			</view>
			<view class="boxlist">
				<view class="centerbox">
					<view class="listpage" v-for="item in 3" @click="editfriends(item)">
						<view class="image">
							<image src="../../../../static/img/menu-tx.png" mode=""></image>
						</view>
						<view class="title">
							<view class="name">
								<text>干吧</text>
								<text>哦哦哦</text>
							</view>
							<view class="nearly">
								<text>来过16次</text>
								<text>最近 2020-12-23</text>
							</view>

						</view>
						<view class="">
							<text class="iconfont todaygengduo"></text>
						</view>
					</view>
				</view>
				<view class="boxitem" v-for="item in 20" @click="submit">
					+ 外婆
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {

			};
		},
		onLoad() {
			
		},
		methods:{
			submit(){
				uni.navigateTo({
					url:'../share/share'
				})
			},
			editfriends(val){
				uni.navigateTo({
					url:'../editfriends/editfriends?status='+val
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.friends {
		.boxlist {
			background: #F8F8F8;
			display: flex;
			flex-flow: row wrap;
			justify-content: center;

			.centerbox {
				width: 100%;
				margin-top: 32rpx;
				margin-bottom: 38rpx;
			}

			.listpage:last-child {
				border: none;
			}

			.listpage {
				background-color: #FFFFFF;
				display: flex;
				width: 100%;
				padding: 32rpx;
				align-items: center;
				border-bottom: 1rpx solid rgba(0, 0, 0, .1);

				.title {
					flex: 2;
					display: flex;
					flex-direction: column;

					.name {
						text:first-child {
							font-size: 30rpx;
							font-family: PingFang SC;
							font-weight: bold;
							color: #333333;
							opacity: 1;

						}

						text:last-child {
							margin-left: 16rpx;
							font-size: 30rpx;
							font-family: PingFang SC;
							font-weight: 500;
							color: #666666;
							opacity: 1;

						}
					}

					.nearly {
						font-size: 24rpx;
						color: #666666;

						text:first-child {
							margin-right: 16rpx;
						}

						text:last-child {}
					}
				}

				.image {
					width: 94rpx;
					height: 94rpx;
					margin-right: 8rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}
			}

			.boxitem {
				margin: 16rpx 23rpx;
				width: 300rpx;
				height: 100rpx;
				background: #FFFFFF;
				opacity: 1;
				border-radius: 5rpx;
				text-align: center;
				line-height: 100rpx;
				font-size: 30rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #999999;
				opacity: 1;

			}
		}

		.memberfriends {
			display: flex;
			justify-content: center;
			background-color: #FFFFFF;
			height: 300rpx;

			// padding: 28rpx 0 20rpx;
			.memberitem {
				margin: 28rpx 60rpx;
				display: flex;
				flex-flow: column wrap;
				align-items: center;

				.invite {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #04A1FB;
					opacity: 1;
				}

				.nearly {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #666666;
					opacity: 1;

				}

				.name {
					margin-top: 20rpx;
					margin-bottom: 10rpx;
					display: flex;
					align-items: flex-end;

					text:first-child {
						font-size: 30rpx;
						font-family: PingFang SC;
						font-weight: bold;
						color: #333333;
						opacity: 1;

					}

					text:last-child {
						margin-left: 16rpx;
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #666666;
						opacity: 1;

					}
				}
			}

			.imgage {
				width: 140rpx;
				height: 140rpx;
			}
		}
	}
</style>
